#ifndef __LV_PORTING_H__
#define __LV_PORTING_H__

#include <stdbool.h>
#include <lvgl.h>
#include "esp_lcd_panel_io.h"

#ifdef __cplusplus
extern "C" {
#endif

extern lv_disp_drv_t disp_drv; // contains callback functions
extern bool notify_lvgl_flush_ready(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_io_event_data_t *edata, void *user_ctx);

/**
 * @brief Initialize LVGL porting
 */
void lv_port_init(void);

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LVGL_H*/
